package cn.tedu.basic;

import java.util.Scanner;

public class Test3_Max {
    public static void main(String[] args) {
        System.out.println("请输入两次整数：");
        int a = new Scanner(System.in).nextInt();
        int b = new Scanner(System.in).nextInt();

        int max = a > b ? a : b;
        System.out.println("两个数里的大值是：" + max);

        int c = new Scanner(System.in).nextInt();
        max = c > max ? c : max;

        System.out.println("三个数里的大值是："+max);
    }
}
